﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DtsExplorerProject.Helpers
{
    static public class CurrentTreeNodeInfoClass
    {
        static public TreeNode IndexOf(this TreeNode[] treenodecollection,string treenodetext)
        {
            foreach (TreeNode item in treenodecollection)
            {
                if (item.Text == treenodetext)
                {
                    return item;
                }
            }
            return null;
        }
    }
}
